﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Back-end.Master" AutoEventWireup="true" CodeBehind="ThemBaiHoc.aspx.cs" Inherits="TracNghiemTinHocDaiCuong.ThemBaiHoc" %>
<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <div>
            <table border="0" cellspacing="2px" cellpadding="4px" width="80%">
            	<tr>
            		<td>
                    Tên bài học
                    <span style="color:red">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTenBaiHoc" runat="Server" CssClass="txt"></asp:TextBox>
                        <asp:RequiredFieldValidator ControlToValidate="txtTenBaiHoc" runat="Server" ForeColor="Red"
                        ErrorMessage="Tên chủ đề không được để trống" ></asp:RequiredFieldValidator>
                    </td>
                    <td>
                    Bài học cha<span style="color:red">*</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMaBaiTiep" runat="server" DataTextField="TenBH" DataValueField="MaBH"
                        CssClass="txt"></asp:DropDownList>
                    </td>
            	</tr>
                <tr>
            		<td>
                    Chủ đề
                    <span style="color:red">*</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlChuDe" runat="server" DataTextField="TenCD" DataValueField="MaCD"
                        CssClass="txt"></asp:DropDownList>
                    </td>
            	</tr>
                <tr>
            		<td>
                    Nội dung
                    </td>
                    <td colspan="3">
                        <CKEditor:CKEditorControl ID="ckeNoiDung" runat="server" Width="98%" ToolbarLocation="Bottom"></CKEditor:CKEditorControl>
                    </td>
            	</tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblThongBao" runat="server" CssClass="lblThongBao"></asp:Label>
        </div>
        <br />
        <div class="btnThem">
            <asp:Button ID="btnXoaTuKhoa" runat="server" Text="Xóa từ khóa" OnClick="btnXoaTuKhoa_Click"/>
            <asp:Button ID="btnThem" runat="Server" Text="Thêm" OnClick="btnThem_Click"/>
            <asp:Button ID="btnQuayLai" runat="Server" Text="Quay lui" OnClick="btnQuayLai_Click" 
            CausesValidation="false"/>
        </div>
    </div>
</asp:Content>
